package com.tjtt.tdm.flow.service.impl;

import java.util.List;

import com.tjtt.tdm.flow.bean.FlowDetailed;
import com.tjtt.tdm.flow.bean.FlowTask;
import com.tjtt.tdm.flow.bean.FlowTaskInfo;
import com.tjtt.tdm.flow.dao.IFlowformDao;
import com.tjtt.tdm.flow.service.IFlowformService;
import com.tjtt.tdm.form.bean.AutoFormsField;
import com.tjtt.tdm.form.bean.AutoFormsNew;

public class FlowformServiceImpl implements IFlowformService {
	private IFlowformDao flowformDao;

	public IFlowformDao getFlowformDao() {
		return flowformDao;
	}

	public void setFlowformDao(IFlowformDao flowformDao) {
		this.flowformDao = flowformDao;
	}

	
	public AutoFormsNew getAutoFormsNewById(String formId) {
		return flowformDao.getAutoFormsNewById(formId);
	}

	
	public List<AutoFormsField> getAutoFormsFieldByformid(String formid) {
		return null;
	}

	
	public FlowTask getFlowTaskById(String id) {
		return flowformDao.getFlowTaskById(id);
	}

	
	public void updateFlowTask(FlowTask flowTask) {
		flowformDao.updateFlowTask(flowTask);
	}

	
	public String saveFlowDetailed(FlowDetailed flowDetailed) {
		return flowformDao.saveFlowDetailed(flowDetailed);
	}

	
	public String saveFlowTask(FlowTask flowTask) {
		return flowformDao.saveFlowTask(flowTask);
	}

	
	public String saveFlowTaskInfo(FlowTaskInfo flowTaskInfo) {
		return flowformDao.saveFlowTaskInfo(flowTaskInfo);
	}

	
	public void updateFlowTaskInfo(FlowTaskInfo flowTaskInfo) {
		flowformDao.updateFlowTaskInfo(flowTaskInfo);
	}

	
	public void delFlowTaskInfo(FlowTaskInfo flowtaskinfo) {
		flowformDao.delFlowTaskInfo(flowtaskinfo);
	}

	
	public FlowTaskInfo getFlowTaskInfoById(String id) {
		return flowformDao.getFlowTaskInfoById(id);
	}

	
	public int getFlowtaskinfoStatecount(String taskid, String stateid) {
		return flowformDao.getFlowtaskinfoStatecount(taskid, stateid);
	}

	
	public void delFlowTaskInfoAll(String taskid) {
		flowformDao.delFlowTaskInfoAll(taskid);
	}
	
	public FlowDetailed getFlowDetailedById(String id){
		return flowformDao.getFlowDetailedById(id);
	}
}
